#!/bin/bash

i=0

while test $i -lt 10
do
    echo $i
    #i=`expr $i + 1`
    i=$[$i+1]
done


i=0
echo "input y"
read A

while [ $A = 'y' ] && [ $i -lt 10 ]
do
    echo "hello"
    i=$[$i+1]
done

echo "input x"
read B
echo $B

#if (( $B=='x'))
if [ $B = 'x' ]
then
    echo "x input"
else
    echo "not x"
fi
